//
//  AFNblock.h
//  UI第三方小练习
//
//  Created by apple on 15/8/24.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "HCache.h"

typedef void (^AFNData)(id block);
@interface AFNblock : NSObject

+ (void)getdataWithString:(NSString *)string block:(AFNData)block;


// 新写的
+(void)getdataWithUrlString:(NSString *)string dataBlock:(AFNData)block netBlock:(AFNData)netBlock;


// 仅当目的地页面使用方法时使用
+(void)getdataWithUrlString:(NSString *)string type:(NSInteger)type dataBlock:(AFNData)block netBlock:(AFNData)netBlock;
@end
